package com.gscitysfy.cus.drain.modules.duty.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;


/**
 * @description:排班记录实体类
 * @author 刘少华
 * @version 1.0
 * @date 2022/3/29 16:58
 */
@Data
@TableName("moper_duty_mn_rota")
public class MoperDutyMnRota {
    private static final long serialVersionUID = 1L;

   @TableField(exist = false)
    private Integer personOrder;

    /**
     * 主键
     */
    @TableId
    private String coamKid;

    /**
     * 值班人员ID
     */
    private String coamDutyPersonId;


    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date coamGenerateDate;

    /**
     * 班次ID
     */
    private String coamClassesId;


    /**
     * 开始时间
     */
    private LocalDateTime coamClassesStartTime;

    /**
     * 结束时间
     */
    private LocalDateTime coamClassesEndTime;

    /**
     * 创建时间
     */
    private LocalDateTime coamAddtime;

    /**
     * 更新时间
     */
    private LocalDateTime coamUptime;

    /**
     * 创建人
     */
    private String coamCreator;

    /**
     * 修改人
     */
    private String coamModifier;

    /**
     * 数据状态
     */
    private Long coamUsable;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(exist = false)
    private Date startTime;

    @TableField(exist = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    @TableField(exist = false)
    private String coamPersonUsername;

    @TableField(exist = false)
    private String coamPersonContactNumber;

    @TableField(exist = false)
    private String coamPersonType;
}
